package org.wll.service;

import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.wll.dto.DeptEmpDto;
import org.wll.entity.Department;

import java.util.List;
import java.util.Map;

public interface DepartmentService {

    public Department findDeptById(Integer eid);

    public List<Department> findAllDepts();

    public Department addDept(Department dept);

    public Department updeDept(Department dept);

    public void deleteDeptById(Integer eid);

    List<DeptEmpDto> findDeptAllEmpByDid(Integer did);

    Page<Map> findDeptAllEmpPageByDid(Integer did, Pageable pageable);

    Object findDeptAllEmpPage2ByDid(Integer did, Integer pageNumber, Integer pageSize);
}
